<?php
error_reporting(E_ALL);

require('../config.inc');
require('../mochigames.php');

mysql_connect(DBSERVER, DBUSER, DBPASS) or die(mysql_error());
mysql_select_db(DBDBASE) or die(mysql_error());

$games = new mochigames();

echo "testing getCategories()\n";

print_r($games->getCategories());

echo "testing getNumGamesByCat()\n";
print_r($games->getNumGamesByCat('action'));

echo "testing getGamesByCat()\n";
print_r($games->getGamesByCat('Action'));

echo "testing getGame()\n";
print_r($games->getGame('autumn'));

echo "testing trackGame()\n";
print_r($games->trackGame('autumn'));
